<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<nav class="top ">
    <a href="http://localhost:8080/">
        <span style="color:#C40000;margin:0px" class=" glyphicon glyphicon glyphicon-home redColor"></span>
        天猫首页
    </a>

    <span>喵，欢迎来天猫</span>

    <c:choose>
        <c:when test="${empty user}">
            <a href="/login">请登录</a>
            <a href="/register">免费注册</a>
        </c:when>
        <c:otherwise>
            <a href="#nowhere">${user.nickname}</a>
            <a href="/logout">退出</a>
        </c:otherwise>

    </c:choose>



    <span class="pull-right">
			<a href="/orderlist">我的订单</a>
			<a href="/cart">
			<span style="color:#C40000;margin:0px" class=" glyphicon glyphicon-shopping-cart redColor"></span>
			购物车<strong>0</strong>件</a>
		</span>

</nav>